Skip to content

Update test_processor.py#283

Open
pvinci wants to merge 1 commit into
mtreinish:mainfrom
pvinci:patch-1
Open

Update test_processor.py#283
pvinci wants to merge 1 commit into
mtreinish:mainfrom
pvinci:patch-1

Conversation

@pvinci

@pvinci pvinci commented Nov 16, 2019

Copy link
Copy Markdown
Contributor

Workaround for change in behavior in python3.6
See: https://bugs.python.org/issue29130

Workaround for change in behavior in python3.6
See: https://bugs.python.org/issue29130
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 68.114% when pulling a47bb37 on pvinci:patch-1 into ff9b688 on mtreinish:master.

@mtreinish mtreinish left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this, based on the bug linked in the commit message it looks like starting in python 3.6 python will exit will exit with 120 if there is an error raised during the closing of the interpreter. The example in that bug was that flush() was called on sys.stdout or sys.stderr. This seems like an actual error that we want to report to the user since it's something wrong with the code. Especially if this is happening during import of a module (which is all that happens during discovery).

Was there a use case or issue you were hitting that required making this change? I'm just trying to understand the reason behind why we would want to do this and maybe we can come up with an alternative solution.

@pvinci

pvinci commented Dec 5, 2019 via email

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants